
<template>
  <div>
    <FormInput v-if="one.type === 1" label="车位号" bind="spaceNo" required />
    <FormSlot v-else label="车位号">
      <FormInput tip="请输入前缀" bind="prefix" noLabel third required />
      <FormInput tip="请输入车位起始" bind="start" noLabel third required />
      <FormInput tip="请输入车位终止" bind="end" noLabel third required />
    </FormSlot>

    <FormTree
      :label="`所在${CORE.MAP.REGION}`"
      bind="areaId, areaName"
      :dict="CORE.REGION.DICT"
      allName
      noClear
      required
    />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'SpaceAdd',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
